package main

import "fmt"

func wuHuanChong() {

	c := make(chan int, 0)

	go func(chan int) { //happen-before机制 保证不会死锁
		fmt.Println(<-c)
	}(c)
	c <- 1
}
